﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace PIP.Database.Migrations.Yygh.Migrations
{
    public partial class Yygh_V103 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "HospitalDepartment",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    departId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    departName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    parentDepartId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    departIntro = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    departAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    departNature = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    merchId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_HospitalDepartment", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "HospitalDepartment");
        }
    }
}
